package info.ericbutler.microcosm.entities.ui;

import info.ericbutler.microcosm.enums.CraftingSkill;

import java.util.Vector;

public class CraftingRecipe {
	private String 				name;
	private Vector<ItemStack>	ingredients = new Vector<>();
	private ItemStack			finalProduct;
	private CraftingSkill		prereqSkill;
	
	public CraftingRecipe(String name, ItemStack finalProduct, CraftingSkill skill, ItemStack... ingredients) {
		for( ItemStack s : ingredients ) {
			this.ingredients.add( s.clone() );
		}
		this.name = name;
		this.finalProduct = finalProduct.clone();
		this.prereqSkill = skill;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Vector<ItemStack> getIngredients() {
		return ingredients;
	}

	public void setIngredients(Vector<ItemStack> ingredients) {
		this.ingredients = ingredients;
	}

	public ItemStack getFinalProduct() {
		return finalProduct.clone();
	}

	public void setFinalProduct(ItemStack finalProduct) {
		this.finalProduct = finalProduct;
	}

	public CraftingSkill getPrereqSkill() {
		return prereqSkill;
	}

	public void setPrereqSkill(CraftingSkill prereqSkill) {
		this.prereqSkill = prereqSkill;
	}
}
